home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
PASCAL
/
2856.ZIP
/
FUNCKEY.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-05-11
|
2KB
|
81 lines
unit FuncKey;
{ FEBRUARY 1991 version 3
*****************************************************************************
* *
* KeyTree Toolbox customizable routines
* *
* Copyright 1991 by Rewse Consultants Limited *
* *
* The KeyTree Toolbox is issued as shareware. In case you are unaware of *
* how the shareware system works, it is NOT 'free' software. *
* No initial charge is made for the software, so that you can try it out *
* without obligation. However, if you continue to use the software (and in *
* the case of the KeyTree Toolbox, use programs created using it), *
* then you are required to pay a registration fee. To register your use of *
* the KeyTree Toolbox, we ask you to pay a miserly £30 (UK Pounds), a mere *
* fraction of the cost that you are saving in time and effort. Please send *
* your registration fee to : *
* *
* Rewse Consultants Limited *
* 44, Horseshoe Road, Pangbourne, Reading, Berkshire RG8 7JL, UK *
****************************************************************************}
interface
uses crt;
procedure ktPutChar(c : char);
procedure ktBackSpace;
procedure ktSeparator;
procedure ktProcessFunctionKey;
implementation
procedure ktPutChar(c : char);
begin
write(c); { if you are using graphics you should replace
this line and the ktBackSpace and ktSeparator
lines with an OutText procedure call }
end;
procedure ktBackSpace;
begin
write(#8' '#8);
end;
procedure ktSeparator;
begin write('/');
end;
procedure ktProcessFunctionKey;
var x1,x2,y1,y2,x,y : integer;
begin
x1 := Lo(WindMin);
x2 := Lo(WindMax);
y1 := Hi(WindMin);
y2 := Hi(WindMax);
x := WhereX;
y := WhereY;
{ place here your own routines for processing function keys.
If you are using graphics, you should replace the lines above
with procedure calls to GetViewSettings, GetX and GetY
and the lines below with procedure calls to SetViewPort and
MoveTo.
Some care needs to be exercised to ensure you don't get any
problems with circular references. If the code you insert
here includes calls to KeyTree then you should put the uses
clause inside the implementaion section.
}
Window(x1,y1,x2,y2);
GotoXY(x,y);
end;
{$I+}
end.